Rewrite the bash scripts in Lua. 🔼
For SledjHamr I'd want these sorts of things written in Lua anyway.
Pros -
[list]
[*]Easier to understand.
[*]More portable.
[/list]
Cons -
[list]
[*]Have to make sure Lua is installed. This will be a chicken and egg problem if the install script is Lua.
[/list]
Actually writing most of it in C, with bits of Lua for config.
Done -
[list]
[*]backup + gitar/rsync all members
[*]backup + gitar/rsync one member
[*]backup + gitar/rsync all sims
[*]backup + gitar/rsync one sim
[*]gitar all members
[*]gitar one member
[*]gitar all sims
[*]gitar one sim
[*]restart all sims
[*]restart one sim
[*]secure
[*]start ROBUST and all sims
[*]start one sim
[*]status all members
[*]status one member
[*]status all sims
[*]status one sim
[*]stop all sims and ROBUST
[*]stop one sim
[*]build
[*]update
[*]test
[/list]
Still to do -
[list]
[*]install - tricky, leave until later.
[/list]
reported=2019-05-31 05:11:45
reporter=onefang
priority=immediate
category=Feature
severity=feature
resolution=fixed
2019-07-24 06:24:12 onefang: For Windows and other OSes these might be useful -
[url=https://luapower.com/]luapower[/url]
[url=http://ulua.io/]ULua[/url]
2019-08-11 10:41:43 onefang: [s]One thing to change is that currently the inventory backup is done on the highest numbered sim, it should be configurable so I can put it back in Sandbox.[/s] Done.
2019-08-25 19:06:37 onefang: Have a static binary called sledjchisl, based on toybox + Lua, that fires up tmux.
It'll replace all the scripts, including install, start, stop, backup, [s]create,[/s] secure, and add update, build, test.
I don't think anyone ever used the create script.
2019-08-29 06:55:25 onefang: [s]Include in the stop-sim command that it should do "show users" and don't bother with warnings and delays if there's no one there.[/s]
Done.
2019-09-02 00:58:35 Taylor: [quote=onefang]It'll replace all the scripts, including install, start, stop, backup, create, secure, and add update, build, test.[/quote]
Rolling re-start and backup in one? Start main backup procedure, one sim goes down, gets backed up, comes back online, next sim goes down, gets backed up, comes back.
2019-09-02 06:27:09 onefang: Something similar. Can't do sim goes down then gets backed up, coz the sim has to be up for the save OAR command to work.
What I do on IG is to let the automated backup do the backups per sim, then if I'm around I'll shut down the sims that have had their backups done. Except the last sim that runs the save IAR backups as well. Once it is all done, I shut down that last sim, shutdown ROBUST, then start the whole grid up again.
There's also various delays so that all that storing and compressing isn't happening all at the same time, and the system gets a breather. Not to mention the extra step I go through to create compressed gitARs out of the results.
2019-11-05 04:33:28 onefang: [s]For some reason the grid wont start from boot unless someone is watching the console.
Seems to be fixed now, but keep an eye on that.
And now a report that CG hangs waiting for "INITIALISATION COMPLETE FOR ROBUST", possibly coz the VMWare startup console is tiny. Or something. Might be the same thing?
[/s]
Figured this out and solved it. Tmux oddity.
2021-06-29 22:36:19 onefang: [s]New sledjchisl stuff will attach to the tmux in the current terminal, the old start scripts didn't do that. Think I preferred the old way.[/s] Fixed.
2021-08-27 08:25:29 onefang: This one took aaaaages.